﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CMN.Entity
{
      ///<summary>
    ///Extend_CollectLinkInfoEntity实体类(采集列表)
    ///</summary>
    [Serializable]
    public partial class Extend_CollectLinkInfoEntity:  IEquatable<Extend_CollectLinkInfoEntity>     
    {

         public bool Equals(Extend_CollectLinkInfoEntity other)
         {
             if (other == null) return false;
             if(this == other) return true;
             return Url.Equals(other.Url) ;
        }
    
        #region "Private Variables"
        private DataTableAction _DataTable_Action;  // 操作方法 Insert:增加 Update:修改 Delete:删除
        private Int32 _Id=0; // 
        private bool _IsCollect=false; // 是否采集
        private String _Url=""; // 采集地址
        private Int32 _CollectSetId=0; // 采集配置Id
        private Int32 _CollectNum=0; // 采集次数
        #endregion

        #region "Public Variables"
        ///<summary>
        /// 操作方法 Insert:增加 Update:修改 Delete:删除
        ///</summary>
        public DataTableAction DataTable_Action
        {
            set { this._DataTable_Action = value; }
            get { return this._DataTable_Action; }
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32  Id
        {
            set { this._Id = value; }
            get { return this._Id; }
        }
        /// <summary>
        /// 是否采集
        /// </summary>
        public bool  IsCollect
        {
            set { this._IsCollect = value; }
            get { return this._IsCollect; }
        }
        /// <summary>
        /// 采集地址
        /// </summary>
        public String  Url
        {
            set { this._Url = value; }
            get { return this._Url; }
        }
        /// <summary>
        /// 采集配置Id
        /// </summary>
        public Int32  CollectSetId
        {
            set { this._CollectSetId = value; }
            get { return this._CollectSetId; }
        }
        /// <summary>
        /// 采集次数
        /// </summary>
        public Int32  CollectNum
        {
            set { this._CollectNum = value; }
            get { return this._CollectNum; }
        }
        public override bool Equals(Object obj)
        {
            Extend_CollectLinkInfoEntity linkInfo = obj as Extend_CollectLinkInfoEntity;
            if (linkInfo == null)
                return false;
            else
                return _Url.Equals(linkInfo.Url);
        }

        public override int GetHashCode()
        {
            return this._Url.GetHashCode();
        }
        #endregion
    }
}
